Post by alfioPost by Dave RoyalQuando provo ad aprire il thread di Alfio "PiaoHong Newsreader Mod
12" si blocca "Il newsgroup non risponde".
la mia nuova query
che cerca il mMsgID in qualsiasi posizione
nella mReferences, ha fatto venire fuori un altro bug di
PiaoHong.
il programma esegue la query originale per tutti i messaggi del
thread in modo ricorsivo, ma in realta' basta eseguirla una volta
sola, perche' gia' la prima volta restituisce tutti i messaggi di
quel thread e le volte seguenti restituisce zero
messaggi.
quindi soluzione trovata.
aveva ragione donCamillo, tra un pochino esce la M15 :-)
Ieri ho guardato il codice di inserimento dell'articolo per
rispondere alla tua domanda sulla chiusura del cursore. Va bene.
(Mi piace moveToNext.) Sarebbe più veloce _usare_ il cursore nel
comando ExecSSL successivo, ma più semplice mantenere il comando
che sappiamo funziona.
Ho pensato che ad altri in questo gruppo potrebbe piacere vedere
il codice di cui abbiamo discusso, quindi l'ho screenshottato. Le
aggiunte sono contrassegnate in rosso.
<
Loading Image...>
Ma come hai già scoperto, non è questa la fonte di questo bug.
Sono rimasto davvero sorpreso quando ho guardato il database e ho
visto come collegava gli articoli: mi aspettavo collegamenti in
avanti e indietro. Non ho ancora capito come farlo! Si presuppone
che i post successivi abbiano tempi successivi? In rari casi ciò
potrebbe non essere vero.
... continua in inglese
EN -----
I looked yesterday at the article insertion code to answer your
question about closing the cursor. It's fine. (I like the
moveToNext.) It would be faster to _use_ the curson in the next
following ExecSSL command, but easier to keep the command that we
know works.
I thought others in this group might like to see the code we've
been discussing, so I screenshotted it. The additions are marked
in red.
<https://www.cjoint.com/data/NBjq7MoXdOT_M14-DatabaseHelperAnnotated.png>
But as you you already found, that's not the source of this bug. I
was really surprised when I looked at the database and saw how it
linked the articles: I expected forward and back links. I have
not worked out how it does it yet! Does it assume that later
posts have later times? In rare cases that might not be
true.
If setting mReferences to blank causes more ill-effects, an
alternative it would be to add a dummy reference at the
start:
References: <***@dummy> <msgID> <msgID> etc
Then test for mReferences == blank OR startwith <dummy
Just a late thought.
--
Remove numerics from my email address.